

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="/static/css/dashboard.css">

    {% block css %}

    {% endblock %}

    <style>

        .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {

            padding: 8px;
            line-height: 1.42857143;
            vertical-align: middle;
            border-top: 1px solid #ddd;
        }

    </style>
</head>


<body>

{% include 'nav.html' %}

<div class="container-fluid">
    <div class="row">

        <div class=" col-md-8 col-md-offset-2 main">

        <div class="panel panel-primary">

    <div class="panel-heading">添加出版社</div>
    <div class="panel-body">
        {#                    <form action="" method="post">#}
        {##}
        {#                        <p>#}
        {#                            出版社名称： <input type="text" name="pub_name" value="{{ pub_name }}">#}
        {#                            <span style="color: red">{{ error }}</span>#}
        {#                        </p>#}
        {##}
        {#                        <button>提交</button>#}
        {#                    </form>#}

        <form class="form-horizontal" action="" method="post">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">书籍名称</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" id="inputEmail3" name="title"
                           value="{{ pub_name }}">

                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">出版社</label>
                <div class="col-sm-6">
                    <select name="pub_id" class="form-control">
                        {% for publisher in all_publishers %}
                            <option value="{{ publisher.pk }}"> {{ publisher.name }} </option>
                        {% endfor %}

                    </select>

                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-6">
                    <button type="submit" class="btn btn-default">提交</button>
                </div>
            </div>
        </form>
    </div>

</div>
        </div>
    </div>
</div>




</body>
</html>